package collection;

public class Employee implements Comparable<Employee>, Company{
	private Long id;
	private String name;
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public Long getId() {
		return id;
	}
	
	public void setId(Long id) {
		this.id = id;
	}

	@Override
	public int compareTo(Employee obj) {
		return (int)(this.getId() -obj.getId());
	}
	
}
